class ExternalInterfaceServiceImpl implements ExternalInterfaceService {

    void validateAndTrimExternalInterfaceKey(ExternalInterfaceKey externalInterfaceKey) throws IllegalArgumentException
    {
        Assert.notNull(externalInterfaceKey, "An external interface key must be specified.");
        externalInterfaceKey.setExternalInterfaceName(
            alternateKeyHelper.validateStringParameter("An", "external interface name", externalInterfaceKey.getExternalInterfaceName()));
    }

}