protected void validateProperties(final Object entity,final EntityDataModel edm) throws ODataException {
  final Type type=edm.getType(entity.getClass());
  if (!(type instanceof StructuredType)) {
    return;
  }
  visitProperties(edm,(StructuredType)type,null);
}

protected void validateProperties ( final Object entity , final EntityDataModel edm ) throws ODataException { final Type type = edm . getType ( entity . getClass ( ) ) ; if ( ! ( type instanceof StructuredType ) ) { return ; } visitProperties ( edm , ( StructuredType ) type , null ) ; }
checks if all non - nullable properties of an entity are non - empty .
