"org.apache.nutch.parse.Parser").getExtensions();
String contentType, command, timeoutString;
for (int i = 0; i < extensions.length; i++) {
Extension extension = extensions[i];
// only look for extensions defined by plugin parse-ext
if (!extension.getDescriptor().getPluginId().equals("parse-ext"))
continue;
contentType = extension.getAttribute("contentType");
if (contentType == null || contentType.equals(""))
continue;
command = extension.getAttribute("command");
if (command == null || command.equals(""))
continue;
timeoutString = extension.getAttribute("timeout");
if (timeoutString == null || timeoutString.equals(""))
timeoutString = "" + TIMEOUT_DEFAULT;
TYPE_PARAMS_MAP.put(contentType, new String[] { command, timeoutString });
}