* @param key the profile key
* @throws NoSuchProfileException if the profile does not exist or is not mutable
*/
public void checkProfile(ProfileKey key) throws NoSuchProfileException
{
ManagedProfileConfiguration configuration = getProfileConfiguration(key);
if(configuration == null || configuration.isDeploymentTarget() == false)
{
formatter.applyPattern(i18n.getString("DeploymentManager.NoMutableProfileException")); //$NON-NLS-1$
Object[] args = { key };
String msg = formatter.format(args);
throw new NoSuchProfileException(msg);