public Object returnInstance(final String instanceKey,final Map<String,Object> keyMap){
  Object instance=null;
  if (keyMap.containsKey(instanceKey)) {
    instance=keyMap.get(instanceKey);
  }
 else {
    _logger.error("Instance : {} not found",instanceKey);
  }
  return instance;
}

public Object returnInstance ( final String instanceKey , final Map < String , Object > keyMap ) { Object instance = null ; if ( keyMap . containsKey ( instanceKey ) ) { instance = keyMap . get ( instanceKey ) ; } else { _logger . error ( "Instance : {} not found" , instanceKey ) ; } return instance ; }
return the instance on which the method needs to get executed .
