class BusinessObjectFormatExternalInterfaceHelper {

    public void validateAndTrimBusinessObjectFormatExternalInterfaceKey(BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
    {
        Assert.notNull(businessObjectFormatExternalInterfaceKey, "A business object format to external interface mapping key must be specified.");
        businessObjectFormatExternalInterfaceKey
            .setNamespace(alternateKeyHelper.validateStringParameter("namespace", businessObjectFormatExternalInterfaceKey.getNamespace()));
        businessObjectFormatExternalInterfaceKey.setBusinessObjectDefinitionName(alternateKeyHelper
            .validateStringParameter("business object definition name", businessObjectFormatExternalInterfaceKey.getBusinessObjectDefinitionName()));
        businessObjectFormatExternalInterfaceKey.setBusinessObjectFormatUsage(alternateKeyHelper
            .validateStringParameter("business object format usage", businessObjectFormatExternalInterfaceKey.getBusinessObjectFormatUsage()));
        businessObjectFormatExternalInterfaceKey.setBusinessObjectFormatFileType(alternateKeyHelper
            .validateStringParameter("business object format file type", businessObjectFormatExternalInterfaceKey.getBusinessObjectFormatFileType()));
        businessObjectFormatExternalInterfaceKey.setExternalInterfaceName(
            alternateKeyHelper.validateStringParameter("An", "external interface name", businessObjectFormatExternalInterfaceKey.getExternalInterfaceName()));
    }

}