code: public static String getFirstLine(final String message) {
  		if (isEmpty(message)) {
  			return message;
  		}
  		if (message.contains("\n")) {
  			return message.split("\n")[0];
  		}
  		return message;
  	}
docs: Gets the first line.
  
  @param message the message
  @return the first line