private void noSubObjects(String id) throws ForbiddenException {
  if (id != null && id.indexOf('/') >= 0) {
    throw new ForbiddenException("Sub-objects are not supported");
  }
}

private void noSubObjects ( String id ) throws ForbiddenException { if ( id != null && id . indexOf ( '/' ) >= 0 ) { throw new ForbiddenException ( "Sub-objects are not supported" ) ; } }
forbid the use of sub objects
