/** * Creates a platform specific instance of a class, for the specified platform. * * @param type the type to create a platform specific instance of * @param platform the platform * @return the instance for the specified platform * @throws Exception for any error */ @Override @SuppressWarnings("unchecked") public <T> T create(Class<T> type, Platform platform) throws Exception { Class<T> impl = getImplementation(type, platform); return factory.create(impl); }