mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/protoconverter/MessageConverter.java
private static Object createEmptyJaxb(final Message protoMsg) throws ObjectConverterException
    {

        final Class<?> jaxbClass = findJaxbClassFromProtoClass(protoMsg.getClass());

        try
        {
            return jaxbClass.newInstance();
        }
        catch (final InstantiationException exception)
        {
            throw new ObjectConverterException(exception);
        }
        catch (final IllegalAccessException exception)
        {
            throw new ObjectConverterException(exception);
        }
    }
/**
     * Create an empty jaxb object representing the message.
     * @param protoMsg
     *      the proto message to base the jaxb object from
     * @return
     *      empty jaxb class
     * @throws ObjectConverterException
     *      if the jaxb class cannot be found
     */
Create an empty jaxb object representing the message.
@param protoMsg
the proto message to base the jaxb object from
@return
empty jaxb class
@throws ObjectConverterException
if the jaxb class cannot be found
Create an empty jaxb object representing the message . @param protoMsg the proto message to base the jaxb object from @return empty jaxb class @throws ObjectConverterException if the jaxb class cannot be found
private static Object createEmptyJaxb(final Message protoMsg) throws ObjectConverterException
    {
        final Class<?> jaxbClass = findJaxbClassFromProtoClass(protoMsg.getClass());
        try
        {
            return jaxbClass.newInstance();
        }
        catch (final InstantiationException exception)
        {
            throw new ObjectConverterException(exception);
        }
        catch (final IllegalAccessException exception)
        {
            throw new ObjectConverterException(exception);
        }
    }
private static Object createEmptyJaxb ( final Message protoMsg ) throws ObjectConverterException { final Class < ? > jaxbClass = findJaxbClassFromProtoClass ( protoMsg . getClass ( ) ) ; try { return jaxbClass . newInstance ( ) ; } catch ( final InstantiationException exception ) { throw new ObjectConverterException ( exception ) ; } catch ( final IllegalAccessException exception ) { throw new ObjectConverterException ( exception ) ; } }
Create an empty jaxb object representing the message.
Create an empty jaxb object representing the message .