class ProfileName {

    public static String getNameForEnvironment(TargetEnvironment env, List<ProfileName> nameMap, String defaultName) {
        if (nameMap != null) {
            for (ProfileName profileWithEnvironment : nameMap) {
                // first match always wins
                if (env.match(profileWithEnvironment.getOs(), profileWithEnvironment.getWs(),
                        profileWithEnvironment.getArch())) {
                    return profileWithEnvironment.getName();
                }
            }
        }
        return defaultName;
    }

    public  ProfileName();
    public  ProfileName(String name);
    public  ProfileName(String name, String os, String ws, String arch);

}