static boolean hasSystemPropertyVariable(String variable) {
        final String path = System.getProperty(variable);
        if (path != null) {
            return true;
        }
        return false;
    }
static boolean hasSystemPropertyVariable ( String variable ) { final String path = System . getProperty ( variable ) ; if ( path != null ) { return true ; } return false ; }
Checks for system property variable.

@param variable the variable
@return true, if successful