private static final Object serializeToProtobufEntity(Object pojo) throws JException
  {
    final ProtobufEntity protoBufEntity = ProtobufSerializerUtils.getProtobufEntity(pojo.getClass());

    if (protoBufEntity == null)
    {
      return pojo;
    }

    return new ProtobufSerializer().toProtobuf(pojo);
  }
private static final Object serializeToProtobufEntity(Object pojo) throws JException
  {
    final ProtobufEntity protoBufEntity = ProtobufSerializerUtils.getProtobufEntity(pojo.getClass());

    if (protoBufEntity == null)
    {
      return pojo;
    }

    return new ProtobufSerializer().toProtobuf(pojo);
  }
private static final Object serializeToProtobufEntity ( Object pojo ) throws JException { final ProtobufEntity protoBufEntity = ProtobufSerializerUtils . getProtobufEntity ( pojo . getClass ( ) ) ; if ( protoBufEntity == null ) { return pojo ; } return new ProtobufSerializer ( ) . toProtobuf ( pojo ) ; }
Create a new serializer and serializes the supplied object/attribute.

@param pojo - the POJO object
@return Object - the resulting GPB object
@throws JException
Create a new serializer and serializes the supplied object / attribute .