class BusinessObjectFormatExternalInterfaceHelper {

    public BusinessObjectFormatExternalInterfaceKey createBusinessObjectFormatExternalInterfaceKeyFromEntity(
        BusinessObjectFormatExternalInterfaceEntity businessObjectFormatExternalInterfaceEntity)
    {
        return new BusinessObjectFormatExternalInterfaceKey(
            businessObjectFormatExternalInterfaceEntity.getBusinessObjectFormat().getBusinessObjectDefinition().getNamespace().getCode(),
            businessObjectFormatExternalInterfaceEntity.getBusinessObjectFormat().getBusinessObjectDefinition().getName(),
            businessObjectFormatExternalInterfaceEntity.getBusinessObjectFormat().getUsage(),
            businessObjectFormatExternalInterfaceEntity.getBusinessObjectFormat().getFileType().getCode(),
            businessObjectFormatExternalInterfaceEntity.getExternalInterface().getCode());
    }

}