public CMAEnvironmentStatus getStatus ( ) { final CMALink link = system . getEnvironmentalStatus ( ) ; if ( link == null ) { return null ; } final String id = link . getId ( ) . toLowerCase ( ) ; for ( final CMAEnvironmentStatus status : CMAEnvironmentStatus . values ( ) ) { final String statusName = status . name ( ) . toLowerCase ( ) ; if ( statusName . equals ( id ) ) { return status ; } } return null ; }
Return the state of this environment