private static void registerJavaContext(ContributionContextTypeRegistry registry,String id,TemplateContextType parent){
  TemplateContextType contextType=registry.getContextType(id);
  Iterator<TemplateVariableResolver> iter=parent.resolvers();
  while (iter.hasNext())   contextType.addResolver(iter.next());
}

private static void registerJavaContext ( ContributionContextTypeRegistry registry , String id , TemplateContextType parent ) { TemplateContextType contextType = registry . getContextType ( id ) ; Iterator < TemplateVariableResolver > iter = parent . resolvers ( ) ; while ( iter . hasNext ( ) ) contextType . addResolver ( iter . next ( ) ) ; }
registers the given java template context .
