remove restconfig findbugs errors

dead store
final fields
handle file rename failure