if (!isNamedColorProfile(profile)) {
throw new IllegalArgumentException("Given profile is not a named color profile (NCP)");
}
String profileDescription = getProfileDescription(profile);
String copyright = getCopyright(profile);
RenderingIntent intent = getRenderingIntent(profile);
NamedColorSpace[] ncs = readNamedColors(profile, profileName, profileURI);
return new NamedColorProfile(profileDescription, copyright, ncs, intent);
}