question: public static boolean startupEnvironment ( boolean isClient ) { startup ( isClient ) ; if ( ! DB . isConnected ( ) ) { log . severe ( "No Database" ) ; return false ; } MSystem system = MSystem . get ( Env . getCtx ( ) ) ; if ( system == null ) return false ; ModelValidationEngine . get ( ) ; try { String className = system . getEncryptionKey ( ) ; if ( className == null || className . length ( ) == 0 ) { className = System . getProperty ( SecureInterface . ADEMPIERE_SECURE ) ; if ( className != null && className . length ( ) > 0 && ! className . equals ( SecureInterface . ADEMPIERE_SECURE_DEFAULT ) ) { SecureEngine . init ( className ) ; system . setEncryptionKey ( className ) ; system . save ( ) ; } } SecureEngine . init ( className ) ; if ( isClient ) MClient . get ( Env . getCtx ( ) , 0 ) ; else MClient . getAll ( Env . getCtx ( ) ) ; } catch ( Exception e ) { log . warning ( "Environment problems: " + e . toString ( ) ) ; } String className = null ; try { className = "org.compiere.wf.DocWorkflowManager" ; Class . forName ( className ) ; className = "org.compiere.print.ArchiveEngine" ; Class . forName ( className ) ; } catch ( Exception e ) { log . warning ( "Not started: " + className + " - " + e . getMessage ( ) ) ; } if ( ! isClient ) DB . updateMail ( ) ; return true ; }
target:  Startup Adempiere Environment. Automatically called for Server connections For testing call this method.