Refactor to remove code duplication from ServerConfigurationBean.

Saw a comment flagging tech debt, so I fixed it.
I want an array specifically for use with varargs. Java generics + arrays are a nasty combination - this is the magical invocation that allows initialization of an array of a generic type. The number doesn't make any difference other than performance - I am open to suggestions that require no number.