public AMServiceProfileModelImpl(HttpServletRequest req,String serviceName,Map map) throws AMConsoleException {
  super(req,map);
  this.serviceName=serviceName;
  try {
    xmlBuilder=new PropertyXMLBuilder(serviceName,getDisplaySchemaTypes(),this);
    if (serviceName.equals(ADMIN_CONSOLE_SERVICE) && ServiceManager.isRealmEnabled()) {
      AMViewConfig config=AMViewConfig.getInstance();
      xmlBuilder.discardAttribute(config.getRealmEnableHiddenConsoleAttrNames());
    }
  }
 catch (  SMSException e) {
    throw new AMConsoleException(getErrorString(e));
  }
catch (  SSOException e) {
    throw new AMConsoleException(getErrorString(e));
  }
}

public AMServiceProfileModelImpl ( HttpServletRequest req , String serviceName , Map map ) throws AMConsoleException { super ( req , map ) ; this . serviceName = serviceName ; try { xmlBuilder = new PropertyXMLBuilder ( serviceName , getDisplaySchemaTypes ( ) , this ) ; if ( serviceName . equals ( ADMIN_CONSOLE_SERVICE ) && ServiceManager . isRealmEnabled ( ) ) { AMViewConfig config = AMViewConfig . getInstance ( ) ; xmlBuilder . discardAttribute ( config . getRealmEnableHiddenConsoleAttrNames ( ) ) ; } } catch ( SMSException e ) { throw new AMConsoleException ( getErrorString ( e ) ) ; } catch ( SSOException e ) { throw new AMConsoleException ( getErrorString ( e ) ) ; } }
creates a simple model using default resource bundle .
