BeanHelper createHelper ( final JClassType pjtype , final TreeLogger plogger , final GeneratorContext pcontext ) throws UnableToCompleteException { final JClassType erasedType = pjtype . getErasedType ( ) ; try { final Class < ? > clazz = Class . forName ( erasedType . getQualifiedBinaryName ( ) ) ; return doCreateHelper ( clazz , erasedType , plogger , pcontext ) ; } catch ( final ClassNotFoundException e ) { plogger . log ( TreeLogger . ERROR , "Unable to create BeanHelper for " + erasedType , e ) ; throw new UnableToCompleteException ( ) ; // NOPMD } }
Creates a BeanHelper and writes an interface containing its instance . Also recursively creates any BeanHelpers on its constrained properties .