class JobSpecDelegator extends BaseDelegator implements IJobSpecDelegator {

    @SuppressWarnings("unchecked")
    @Override
    public IJobSpec getJobSpec() throws ConnectionException, RequestException, AccessException {
        List<Map<String, Object>> resultMaps = execMapCmdList(JOBSPEC, new String[] { "-o" }, null);
        return ResultListBuilder.buildNullableObjectFromNonInfoMessageCommandResultMaps(
                resultMaps,
                // p4ic4idea: explicit generics
                new Function<Map<String, Object>, IJobSpec>() {
                    @Override
                    // p4ic4idea: explicit generics
                    public IJobSpec apply(Map<String, Object> map) {
                        return new JobSpec(map, server);
                    }
                }
        );
    }

    public  JobSpecDelegator(final IOptionsServer server);

}