cloud/src/main/java/com/adamg/materialtemplate/cloud/module/RestApiModule.java
public static void throwIfNullOrEmpty(final String reference, final String name) {
        if (TextUtils.isEmpty(reference)) {
            throw new IllegalStateException("The user must define a value in the config.xml file for: " + name);
        }
    }
/**
     * Check to see if the resource we obtain at initialization are valid and
     * contain data
     *
     * @param reference the string from the XML config resource
     * @param name      the name of the resource
     */
Check to see if the resource we obtain at initialization are valid and
contain data

@param reference the string from the XML config resource
@param name      the name of the resource
Check to see if the resource we obtain at initialization are valid and contain data @param reference the string from the XML config resource @param name the name of the resource
public static void throwIfNullOrEmpty(final String reference, final String name) {
        if (TextUtils.isEmpty(reference)) {
            throw new IllegalStateException("The user must define a value in the config.xml file for: " + name);
        }
    }
public static void throwIfNullOrEmpty ( final String reference , final String name ) { if ( TextUtils . isEmpty ( reference ) ) { throw new IllegalStateException ( "The user must define a value in the config.xml file for: " + name ) ; } }
Check to see if the resource we obtain at initialization are valid and
 contain data
Check to see if the resource we obtain at initialization are valid and contain data