src/main/java/com/zandero/utils/ResourceUtils.java
@Deprecated
	public static String getResourceAsString(String resourceFile, Class clazz) {

		Assert.notNullOrEmptyTrimmed(resourceFile, "Missing resource file!");

		Scanner scanner = null;

		try {
			InputStream resource = clazz.getResourceAsStream(resourceFile);
			scanner = new Scanner(resource, UTF_8);
			return scanner.useDelimiter("\\A").next();
		}
		catch (Exception e) {
			return null;
		}
		finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}
@Deprecated
	public static String getResourceAsString(String resourceFile, Class clazz) {

		Assert.notNullOrEmptyTrimmed(resourceFile, "Missing resource file!");

		Scanner scanner = null;

		try {
			InputStream resource = clazz.getResourceAsStream(resourceFile);
			scanner = new Scanner(resource, UTF_8);
			return scanner.useDelimiter("\\A").next();
		}
		catch (Exception e) {
			return null;
		}
		finally {
			if (scanner != null) {
				scanner.close();
			}
		}
	}
Loads class resource to String

@param resourceFile to read
@param clazz        to use for resource access
@return String representing the resource or null if resource could not be read