// If this transformation instance requires profiling, make sure the profile is registered on the
// Smooks instance.
if(messageProfile != null) {
// Register this message flow if it isn't already registered...
try {
ProfileStore profileStore = smooks.getApplicationContext().getProfileStore();
profileStore.getProfileSet(messageProfile);
} catch(UnknownProfileMemberException e) {
String[] profiles = getMessageProfiles(messageFromType, messageFrom, messageToType, messageTo);
synchronized (SmooksTransformer.class) {
// Register the message flow within the Smooks context....