public static Date getBaseDate(ProjectCreator creator) { try { return creator.createProject().getBaseDate(); } catch (ProjectException e) { e.printStackTrace(); } return null; }
public static Date getBaseDateFromJSON(File f) { try { return getBaseDate(new JSONProjectCreator(f)); } catch (ProjectException e) { e.printStackTrace(); } return null; }