class FileResourceKeyUtil {

    public static String makeKey( FileResourceDomain domain, Optional<String> key )
    {
        if ( key.isPresent() )
        {
            return domain.getContainerName() + "/" + key.get();
        }
        return generateStorageKey( domain );

    }

}