public static InfoRegister importFolder(User user,Integer bookId,List atts,List inter,Map documents,String entidad) throws ValidationException, SecurityException, BookException, SessionException, TecDocException, ParseException, AttributesException {
  InfoRegister result=null;
  String sessionID=null;
  try {
    sessionID=Login.login(user,entidad);
    BookSession.openBook(sessionID,bookId,entidad);
    Integer launchDistOutRegister=RegisterServicesUtil.getInvesConfActions(entidad);
    RegisterServicesUtil.canCreateFolder(sessionID,bookId,documents,user,atts,entidad,false);
    AxSf axsfQ=BookSession.getFormFormat(sessionID,bookId,entidad);
    FieldFormat fieldFormat=RegisterServicesUtil.getFieldFormat(sessionID,bookId);
    Map translatedIds=RegisterServicesUtil.getFieldsWithSustitute(atts,axsfQ,sessionID,bookId,entidad);
    AxSf newAxSF=RegisterServicesUtil.initInOrOutFolder(user,axsfQ);
    newAxSF=RegisterServicesUtil.completeFolderImport(translatedIds,axsfQ,newAxSF,user.getLocale(),atts,fieldFormat);
    FolderDataSession data=Register.importNewFolder(sessionID,bookId,newAxSF,inter,documents,launchDistOutRegister,user.getLocale(),entidad);
    result=ConsultRegister.consultRegisterInfo(bookId,data.getAxsfNew(),data.getNewRegisterID(),data.getScrofic(),data.getUserName(),user.getLocale());
  }
  finally {
    BookSession.closeBook(sessionID,bookId);
    SecuritySession.logout(sessionID,entidad);
  }
  return result;
}

public static InfoRegister importFolder ( User user , Integer bookId , List atts , List inter , Map documents , String entidad ) throws ValidationException , SecurityException , BookException , SessionException , TecDocException , ParseException , AttributesException { InfoRegister result = null ; String sessionID = null ; try { sessionID = Login . login ( user , entidad ) ; BookSession . openBook ( sessionID , bookId , entidad ) ; Integer launchDistOutRegister = RegisterServicesUtil . getInvesConfActions ( entidad ) ; RegisterServicesUtil . canCreateFolder ( sessionID , bookId , documents , user , atts , entidad , false ) ; AxSf axsfQ = BookSession . getFormFormat ( sessionID , bookId , entidad ) ; FieldFormat fieldFormat = RegisterServicesUtil . getFieldFormat ( sessionID , bookId ) ; Map translatedIds = RegisterServicesUtil . getFieldsWithSustitute ( atts , axsfQ , sessionID , bookId , entidad ) ; AxSf newAxSF = RegisterServicesUtil . initInOrOutFolder ( user , axsfQ ) ; newAxSF = RegisterServicesUtil . completeFolderImport ( translatedIds , axsfQ , newAxSF , user . getLocale ( ) , atts , fieldFormat ) ; FolderDataSession data = Register . importNewFolder ( sessionID , bookId , newAxSF , inter , documents , launchDistOutRegister , user . getLocale ( ) , entidad ) ; result = ConsultRegister . consultRegisterInfo ( bookId , data . getAxsfNew ( ) , data . getNewRegisterID ( ) , data . getScrofic ( ) , data . getUserName ( ) , user . getLocale ( ) ) ; } finally { BookSession . closeBook ( sessionID , bookId ) ; SecuritySession . logout ( sessionID , entidad ) ; } return result ; }
metodo que importa un registro
