}
@Override
public MinecraftInstall getInstance(Environment environment, boolean offline)
throws ResolutionException, OnlineRequiredException {
Version current = getVersion();
if (current == null) {
throw new NullPointerException("No version is set for this application");
}
return new MinecraftInstall(getProfile(),
current.resolve(this, offline), environment);
}