@Override
public Restrictions getRestrictions() {
- throw new UnsupportedOperationException("Not available at runtime");
+ throw unsupported();
}
@Override
public GeneratedProperty getSUID() {
- throw new UnsupportedOperationException("Not available at runtime");
+ throw unsupported();
}
@Override
public String getDescription() {
- throw new UnsupportedOperationException("Not available at runtime");
+ throw unsupported();
}
@Override
public String getReference() {
- throw new UnsupportedOperationException("Not available at runtime");
+ throw unsupported();
}
@Override
public Iterable<QName> getSchemaPath() {
- throw new UnsupportedOperationException("Not available at runtime");
+ throw unsupported();
}
@Override
public String getModuleName() {
- throw new UnsupportedOperationException("Not available at runtime");
+ throw unsupported();
+ }
+
+ private static UnsupportedOperationException unsupported() {
+ return new UnsupportedOperationException("Not available at runtime");
}
}
}