OrderRootType (@Nullable String type) { for (PersistentOrderRootType rootType : OrderRootType.getAllPersistentTypes()) { if (rootType.name().equals(type)) { return rootType; } } return DEFAULT_JAR_DIRECTORY_TYPE; }