public static void checkNotNullOrEmpty ( Map < ? , ? > map , String errorMessage ) { if ( map == null || map . isEmpty ( ) ) { throw new ApplicationException ( ApplicationException . Code . INVALID_INPUT , errorMessage ) ; } }
This method checks if the input map is valid or not .