public boolean isForProject(String projectDir){
  return myProjectDirectory == null || myProjectDirectory.equals(projectDir);
}

public boolean isForProject ( String projectDir ) { return myProjectDirectory == null || myProjectDirectory . equals ( projectDir ) ; }
return true if this controller can be used by the app in the projectdir . the very first controller that is created ( to do device discovery ) has no project directory so it can be reused . always invoke # setprojectanddevice after selecting a controller to ensure both directory and device id are set .
