public static void checkFileExists(final File f) throws NetfeverException {
final UUID uuid = UUID.randomUUID();
if (!f.exists()) {
throw new NetfeverException(
new FaultDetails(
uuid.toString(),
0,
"The file does not exists. Contact administrator with error: " + uuid,
"The file at location " + f.getAbsolutePath() + " does not exists.",
null
));
}
if (!f.isFile()) {
throw new NetfeverException(
new FaultDetails(
uuid.toString(),
0,
"The file does not exists. Contact administrator with error: " + uuid,
"The path location " + f.getAbsolutePath() + " is a folder not a file.",
null