question: public static boolean isVMwareVapp ( ) { if ( isVMwareVapp != null ) { log . info ( "Return value {} from cached result" , isVMwareVapp . booleanValue ( ) ) ; return isVMwareVapp . booleanValue ( ) ; } final String [ ] cmd = { GET_OVF_PROPERTY_CMD , IS_VAPP } ; Exec . Result result = Exec . sudo ( CMD_TIMEOUT , cmd ) ; if ( ! result . exitedNormally ( ) ) { log . error ( "Failed to check if it's vApp {}" , result . getStdError ( ) ) ; throw new IllegalStateException ( "Failed to check platform" ) ; } if ( result . getExitValue ( ) == 0 ) { log . info ( "Current platform is VMware vApp" ) ; isVMwareVapp = Boolean . TRUE ; return isVMwareVapp . booleanValue ( ) ; } log . info ( "The exit value of platform check: {}" , result . getExitValue ( ) ) ; isVMwareVapp = Boolean . FALSE ; return isVMwareVapp . booleanValue ( ) ; }
target:  Check if current deployment is VMWare vapp