nl: null-safe check for a context - if the given context is null , it returns the global context . concode_field_sep ContextEntity globalContext concode_elem_sep EntityManager entityManager concode_elem_sep Logger log concode_elem_sep ResourceTypeProvider resourceTypeProvider concode_field_sep Query fetchAllContexts concode_elem_sep List<ContextEntity> getEnvironments concode_elem_sep ContextEntity getContextEntityById concode_elem_sep ContextEntity getGlobalResourceContextEntity
code: ContextEntity function ( ContextEntity arg0 ) { if ( arg0 != null ) { return arg0 ; } return getGlobalResourceContextEntity ( ) ; }