/** * {@inheritDoc} * * @param arguments {@inheritDoc} * @return {@inheritDoc} * @throws JPBadArgumentException {@inheritDoc} */ @Override protected Scope parse(List<String> arguments) throws JPBadArgumentException { String oneArgumentResult = getOneArgumentResult(); try { return new Scope(oneArgumentResult); } catch (IllegalArgumentException ex) { throw new JPBadArgumentException("Given Scope[" + oneArgumentResult + "] is not a Scope.", ex); } } }