class HmsUpgradeUtil {

    public static UpgradeStatus loadUpgradeStatus( final String fileNameAbsPath )
    {

        if ( StringUtils.isBlank( fileNameAbsPath ) )
        {
            return null;
        }

        File upgradeStatusFile = new File( fileNameAbsPath );
        if ( upgradeStatusFile.exists() && upgradeStatusFile.isFile() )
        {

            return HmsUpgradeUtil.loadUpgradeStatus( new File( fileNameAbsPath ) );

        }
        else
        {

            logger.error( "Either '{}' does not exist or is not a file.", fileNameAbsPath );
            return null;
        }
    }

    private  HmsUpgradeUtil();

}