public String getStandardType()

in src/main/java/org/apache/maven/plugins/ear/util/ArtifactTypeMappingService.java [124:134]


    public String getStandardType(final String type) throws UnknownArtifactTypeException {
        if (type == null) {
            throw new IllegalStateException("custom type could not be null.");
        } else if (EarModuleFactory.getStandardArtifactTypes().contains(type)) {
            return type;
        } else if (!customMappings.containsKey(type)) {
            throw new UnknownArtifactTypeException("Unknown artifact type[" + type + "]");
        } else {
            return customMappings.get(type);
        }
    }