public InjectionTargetType<PersistenceUnitRefType<T>> getOrCreateInjectionTarget()
   {
      List<Node> nodeList = childNode.get("injection-target");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new InjectionTargetTypeImpl<PersistenceUnitRefType<T>>(this, "injection-target", childNode, nodeList.get(0));
      }
      return createInjectionTarget();
   }
public InjectionTargetType < PersistenceUnitRefType < T > > getOrCreateInjectionTarget ( ) { List < Node > nodeList = childNode . get ( "injection-target" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new InjectionTargetTypeImpl < PersistenceUnitRefType < T > > ( this , "injection-target" , childNode , nodeList . get ( 0 ) ) ; } return createInjectionTarget ( ) ; }
If not already created, a new <code>injection-target</code> element will be created and returned.
Otherwise, the first existing <code>injection-target</code> element will be returned.
@return the instance defined for the element <code>injection-target</code>