private boolean serviceHasSubSchema(SSOToken token,String serviceName,SchemaType schemaType) throws SMSException, SSOException {
  boolean schemaTypeFlg=false;
  try {
    ServiceSchemaManager ssm=new ServiceSchemaManager(serviceName,token);
    Set types=ssm.getSchemaTypes();
    if (debug.messageEnabled()) {
      debug.message("AMServiceUtils.serviceHasSubSchema() " + "SchemaTypes types for " + serviceName + " are: "+ types);
    }
    schemaTypeFlg=types.contains(schemaType);
  }
 catch (  ServiceNotFoundException ex) {
    if (debug.warningEnabled()) {
      debug.warning("AMServiceUtils.serviceHasSubSchema() " + "Service does not exist : " + serviceName);
    }
  }
  return (schemaTypeFlg);
}

private boolean serviceHasSubSchema ( SSOToken token , String serviceName , SchemaType schemaType ) throws SMSException , SSOException { boolean schemaTypeFlg = false ; try { ServiceSchemaManager ssm = new ServiceSchemaManager ( serviceName , token ) ; Set types = ssm . getSchemaTypes ( ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "AMServiceUtils.serviceHasSubSchema() " + "SchemaTypes types for " + serviceName + " are: " + types ) ; } schemaTypeFlg = types . contains ( schemaType ) ; } catch ( ServiceNotFoundException ex ) { if ( debug . warningEnabled ( ) ) { debug . warning ( "AMServiceUtils.serviceHasSubSchema() " + "Service does not exist : " + serviceName ) ; } } return ( schemaTypeFlg ) ; }
returns true if the service has the subschema . false otherwise .
