Here you can find the source of getProperty(Properties props, String keyword)
public static String getProperty(Properties props, String keyword)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static String getProperty(Properties props, String keyword) { String rv = null;/*from www . j a v a 2 s . c o m*/ if (props != null) { rv = props.getProperty(keyword); } if (rv != null) { if (rv.trim().isEmpty()) { rv = ""; } } else { rv = ""; } return rv; } }