mil.dod.th.ose.shared/src/mil/dod/th/ose/shared/protoconverter/MessageConverter.java
private static Class<?> findJaxbClassFromProtoClass(final Class<?> classToFind) throws ObjectConverterException
    {
        final String jabClazz = classToFind.getName();
        //rename the package as we are going to the jaxb lexicon
        final String classString = jabClazz.replace("remote.lexicon", "core");
        
        //trim off parent message and Gen
        final Pattern pattern = Pattern.compile(".[A-Z]\\w*[\\$]");
        final Matcher match = pattern.matcher(classString);
        final String trimmedClass = match.replaceFirst(PACKAGE_SEPARATOR);
        try
        {
            return Class.forName(trimmedClass, true, 
                    mil.dod.th.core.observation.types.Observation.class.getClassLoader());
        }
        catch (final ClassNotFoundException e)
        {
            throw new ObjectConverterException(e);
        }
    }
/**
     * Find the proto class associated with the given jaxb class.
     * @param classToFind
     *      the class to find
     * @return
     *      the class object
     * @throws ObjectConverterException
     *      if the class cannot be found
     */
Find the proto class associated with the given jaxb class.
@param classToFind
the class to find
@return
the class object
@throws ObjectConverterException
if the class cannot be found
Find the proto class associated with the given jaxb class . @param classToFind the class to find @return the class object @throws ObjectConverterException if the class cannot be found
private static Class<?> findJaxbClassFromProtoClass(final Class<?> classToFind) throws ObjectConverterException
    {
        final String jabClazz = classToFind.getName();
        final String classString = jabClazz.replace("remote.lexicon", "core");
        final Pattern pattern = Pattern.compile(".[A-Z]\\w*[\\$]");
        final Matcher match = pattern.matcher(classString);
        final String trimmedClass = match.replaceFirst(PACKAGE_SEPARATOR);
        try
        {
            return Class.forName(trimmedClass, true, 
                    mil.dod.th.core.observation.types.Observation.class.getClassLoader());
        }
        catch (final ClassNotFoundException e)
        {
            throw new ObjectConverterException(e);
        }
    }
private static Class < ? > findJaxbClassFromProtoClass ( final Class < ? > classToFind ) throws ObjectConverterException { final String jabClazz = classToFind . getName ( ) ; final String classString = jabClazz . replace ( "remote.lexicon" , "core" ) ; final Pattern pattern = Pattern . compile ( ".[A-Z]\\w*[\\$]" ) ; final Matcher match = pattern . matcher ( classString ) ; final String trimmedClass = match . replaceFirst ( PACKAGE_SEPARATOR ) ; try { return Class . forName ( trimmedClass , true , mil . dod . th . core . observation . types . Observation . class . getClassLoader ( ) ) ; } catch ( final ClassNotFoundException e ) { throw new ObjectConverterException ( e ) ; } }
Find the proto class associated with the given jaxb class.
Find the proto class associated with the given jaxb class .
//rename the package as we are going to the jaxb lexicon //trim off parent message and Gen