Drop the use of InputFactory, you can provide a specification when calling add()