return a map containing the state and error description if any for this status . this map may be serialized into zookeeper to write out the module deployment status . concode_field_sep String container concode_elem_sep int moduleSequence concode_elem_sep String errorDescription concode_elem_sep State state concode_elem_sep String ERROR_DESCRIPTION_KEY concode_elem_sep ModuleDescriptor.Key key concode_elem_sep String STATUS_KEY concode_field_sep ModuleDescriptor.Key getKey concode_elem_sep String getErrorDescription concode_elem_sep State getState concode_elem_sep int getModuleSequence concode_elem_sep String getContainer concode_elem_sep String getModuleSequenceAsString concode_elem_sep String toString concode_elem_sep String buildPath
Map < String , String > function ( ) { Map < String , String > loc0 = new HashMap < String , String > ( ) ; loc0 . put ( STATUS_KEY , state . toString ( ) ) ; if ( StringUtils . hasText ( errorDescription ) ) { loc0 . put ( ERROR_DESCRIPTION_KEY , errorDescription ) ; } return Collections . unmodifiableMap ( loc0 ) ; }