private final static Log logger = LogFactory.getLog(JobHelper.class);
public static void view(String viewerPath, File[] files) {
for (int i = 0; i < files.length; i++) {
List<String> args = new ArrayList<String>();
QuotedStringTokenizer t = new QuotedStringTokenizer(viewerPath);
boolean filenameAdded = false;
while (t.hasMoreTokens()) {
String token = t.nextToken();
if ("%s".equals(token) || "%f".equals(token) || "$f".equals(token)) {
args.add(files[i].getAbsolutePath());
filenameAdded = true;
}
else {