class BusinessObjectFormatExternalInterfaceServiceImpl implements BusinessObjectFormatExternalInterfaceService {

    @Override
    public BusinessObjectFormatExternalInterface deleteBusinessObjectFormatExternalInterface(
        BusinessObjectFormatExternalInterfaceKey businessObjectFormatExternalInterfaceKey)
    {
        // Validate and trim the business object format to external interface mapping key.
        businessObjectFormatExternalInterfaceHelper.validateAndTrimBusinessObjectFormatExternalInterfaceKey(businessObjectFormatExternalInterfaceKey);

        // Retrieve and ensure that a business object format to external interface mapping with the specified key exists.
        BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity =
            businessObjectFormatExternalInterfaceDaoHelper.getBusinessObjectFormatExternalInterfaceEntity(businessObjectFormatExternalInterfaceKey);

        // Delete this business object format to external interface mapping entity.
        businessObjectFormatExternalInterfaceDao.delete(businessObjectFormatExternalInterfaceEntity);

        // Create a business object format to external interface mapping object from the entity and return it.
        return businessObjectFormatExternalInterfaceHelper.createBusinessObjectFormatExternalInterfaceFromEntity(businessObjectFormatExternalInterfaceEntity);
    }

}