public BasicProfile getProfile(String profileName) {
        BasicProfile profile = profiles.get(profileName);
        if (profile != null) {
            return profile;
        }

        return profiles.get("profile " + profileName);
    }
Simple wrapper around a map of profiles.
aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/AllProfiles.java