StringTokenizer tokens = new StringTokenizer(Util.fixNull(value), ",");
// Check that all jobs are legit, actual projects.
while (tokens.hasMoreTokens()) {
String projectName = tokens.nextToken().trim();
if (!projectName.equals("")) {
Item item = Hudson.getInstance().getItem(projectName, project, Item.class);
if ((item == null) || !(item instanceof AbstractProject)) {
return FormValidation.error(hudson.model.Messages.AbstractItem_NoSuchJobExists(projectName,
AbstractProject.findNearest(projectName,
project.getParent()).getRelativeNameFrom(project)));
}