public static CustomAntElementsRegistry getInstance(AntDomProject antProject) {
    final AntDomProject contextProject = antProject.getContextAntProject();
    CustomAntElementsRegistry registry = contextProject != null? contextProject.getUserData(REGISTRY_KEY) : null;
    if (registry == null) {
      registry = new CustomAntElementsRegistry(antProject);
      if (registry.isComplete()) {
        antProject.putUserData(REGISTRY_KEY, registry);
      }
    }
    return registry;
  }
public static CustomAntElementsRegistry getInstance(AntDomProject antProject)