public void iQueryAllByTypeAndTime(String fragmentType, String from, String to) throws SDKException, ClassNotFoundException {
try {
Class<?> fragmentClass = Class.forName(fragmentType);
Date fromDate = DateConverter.string2Date(from);
Date toDate = DateConverter.string2Date(to);
MeasurementFilter filter = new MeasurementFilter().byDate(fromDate, toDate).byFragmentType(fragmentClass);
collection1 = (MeasurementCollectionRepresentation) measurementApi.getMeasurementsByFilter(filter).get();
} catch (SDKException ex) {
status = ex.getHttpStatus();
}
}