add @SuppressWarnings("unchecked") to ScanResourceFactory