estou tentando trabalhar com o plugin org.idempierelbr.nfs.
mas estou com dificuldades para criar a classe que vai ser o modelo de nota. cada prefeitura tem o seu modelo.
public static void process(Properties ctx, int LBR_NFS_ID, String trxName)
throws Exception {
String strXMLnfse;
// lot
MLBRNFS nfs = new MLBRNFS(ctx, LBR_NFS_ID, trxName);
//
if (!nfs.getDocStatus().equals(MLBRNFS.DOCSTATUS_Completed))
throw new AdempiereException("NFS-e inválida!");
if (nfs.hasImmutableStatus())
throw new AdempiereException("Estado da NFS-e é inválido!");
//
String nfsModel = nfs.getNFSConfig().getLBR_NFSModel();
// check nfs model
if (nfsModel != null) {
// get instance
INFSe nfsInstance = NFSUtils.getNFSeInstance(nfsModel);
if (nfsInstance == null) {
throw new AdempiereException(
"Plugin não encontrado para para o modelo de NFS-e "
+ nfsModel);
}