*
* @throws IllegalArgumentException
* if this model is not valid, according to {@link #validate()}.
*/
public JndiContextProperties getContext() {
JndiContextProperties ctx = new JndiContextProperties();
int userCutOff = SystemJndiProperty.values().length;
for (int n = 0; n < userCutOff; ++n) {
JndiContextTableRow row = getRowObjectAt(n);
ctx.setSystemPropertyValue(row.getName(), row.getValue());
}
for (int n = userCutOff, rows = getRowCount(); n < rows; ++n) {
JndiContextTableRow row = getRowObjectAt(n);
ctx.addUserDefinedProperty(row.getName(), row.getValue());
}
return ctx;
}