openmrs-android-sdk/src/main/java/com/openmrs/android_sdk/library/dao/LocationDAO.java
/**
     * Find location by name location entity.
     *
     * @param name the name
     * @return the location entity
     */
Find location by name location entity.
@param name the name
@return the location entity
Find location by name location entity . @param name the name @return the location entity
public LocationEntity findLocationByName(String name) {
        if (!StringUtils.notNull(name)) {
            return null;
        }
        try {
            return locationRoomDAO.findLocationByName(name).blockingGet();
        } catch (Exception e) {
            return new LocationEntity(name);
        }
    }
public LocationEntity findLocationByName ( String name ) { if ( ! StringUtils . notNull ( name ) ) { return null ; } try { return locationRoomDAO . findLocationByName ( name ) . blockingGet ( ) ; } catch ( Exception e ) { return new LocationEntity ( name ) ; } }
Find location by name location entity.
Find location by name location entity .